package model

import (
	"github.com/crack007/go-im/src/common/constant"
	"github.com/crack007/go-im/src/common/util"
)

type EtcdModel struct {
	ServiceType constant.NodeType `json:"type"`
	Node        *NodeModel        `json:"node"`
}

func NewEtcdModel() *EtcdModel {
	return &EtcdModel{}
}

func (m *EtcdModel) String() string {
	return util.ToJson(m)
}
